<?php

namespace app\client\controller;

use app\client\services\WithdrawalService;

class Withdrawal extends \app\BaseController
{
    protected $middleware=['CheckClientTokenMiddleware'];

    /**
     * 我要提现
     * @return void
     */
    public function do(){
        $p=$this->request->post();
        $p['customer_id']=$this->request->adminUid;
        WithdrawalService::do($p);
    }

    /**
     * 我的提现列表
     * @return void
     */
    public function list(){
        $p=$this->request->get();
        $p['customer_id']=$this->request->adminUid;
        WithdrawalService::list($p);
    }
}
